export default [
  {
    path: '/',
    component: require('./assets/vue/pages/home.vue')
  },
  {
    path: '/tabs/',
    component: require('./assets/vue/pages/tabs.vue')
  },
  {
    path: '/tab1/',
    component: require('./assets/vue/pages/tab1.vue')
  },
  {
    path: '/tab2/',
    component: require('./assets/vue/pages/tab2.vue')
  },
  {
    path: '/tab3/',
    component: require('./assets/vue/pages/tab3.vue')
  },
  {
    path: '/login/',
    component:require('./assets/vue/pages/login.vue')
  },
  {
    path: '/about/',
    component: require('./assets/vue/pages/about.vue')
  },
  {
    path: '/form/',
    component: require('./assets/vue/pages/form.vue')
  },
  {
    path: '/form1/',
    component: require('./assets/vue/pages/form1.vue')
    // async(routeTo, routeFrom, resolve, reject) {
    //   sessionStorage.setItem('routeTo',routeTo.path)
    //   sessionStorage.setItem('routeFrom',routeFrom.path)
    //   if (sessionStorage.getItem('token')) {
    //     resolve({component: require('./assets/vue/pages/form1.vue')})
    //   } else {
    //     resolve({component: require('./assets/vue/pages/tab3.vue')})
    //   }
    // }
  },
  {
    path: '/dynamic-route/blog/:blogId/post/:postId/',
    component: require('./assets/vue/pages/dynamic-route.vue')
  },
  {
    path: '/panel-left/',
    component: require('./assets/vue/pages/panel-left.vue')
  },
  {
    path: '/color-themes/',
    component: require('./assets/vue/pages/color-themes.vue')
  },
  {
    path: '/chat/',
    component: require('./assets/vue/pages/chat.vue')
  },
  {
    path: '/vuex/',
    component: require('./assets/vue/pages/vuex.vue')
  },
]
